#ifndef MYBUTTON_H
#define MYBUTTON_H

#include "shareA_global.h"
#include <QDebug>
#include <QPushButton>
#include "shareA_global.h"
#include <QDebug>
class SHAREA_EXPORT MyButtonCustom:public QPushButton
{
    Q_OBJECT
    Q_PROPERTY(QColor color READ color WRITE setColor)
public:
    explicit MyButtonCustom(QWidget *parent = nullptr);
    explicit MyButtonCustom(const QString &text, QWidget *parent = nullptr);

    QColor color() const;
    void setColor(const QColor &color);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QColor m_color;
};
#endif // MYBUTTON_H
